﻿using System;
using System.Collections.Generic;

namespace Poly2Tri
{
	// Token: 0x020003F0 RID: 1008
	public class DTSweepPointComparator : IComparer<TriangulationPoint>
	{
		// Token: 0x06001B9A RID: 7066 RVA: 0x000AEC70 File Offset: 0x000ACE70
		public int Compare(TriangulationPoint p1, TriangulationPoint p2)
		{
			if (p1.Y < p2.Y)
			{
				return -1;
			}
			if (p1.Y > p2.Y)
			{
				return 1;
			}
			if (p1.X < p2.X)
			{
				return -1;
			}
			if (p1.X > p2.X)
			{
				return 1;
			}
			return 0;
		}
	}
}
